{% extends "root.html" %}

{% block root_content %}

<form action="." method="post">
    {% csrf_token %}

    <h1>Create an account</h1>

    {% if form.errors %}
        <p class="error">Please enter username and password (twice).</p>
    {% endif %}

    <table>
    <tr>
        <td><label for="id_username">Username:</label> </td>
        <td> {{ form.username }}</td>
    </tr>

    <tr>
        <td><label for="id_password1">Password:</label></td>
        <td> {{ form.password1 }}</td>
    </tr>

    <tr>
        <td><label for="id_password2">Password (again):</label> </td>
        <td>{{ form.password2 }}</td>
    </tr>
    <tr>
        <td></td>
    <td><input type="submit" value="Register" /></td>
    </tr>
        <tr>
            <td></td>
            <td style="font-size: 13px"><br/>Already a member? <br/>
                <a href="{% url login %}">Log in!</a></td>
        </tr>
    </table>
</form>
{% endblock %}